package com.jeez.module.sys.entity;

import com.jeez.common.entity.DataEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author: Felix
 * @date: 2018-7-1
 * @version: v1.0
 * @description: 岗位
 */
@Entity
@Table(name = "t_sys_post")
@Getter
@Setter
public class SysPost extends DataEntity<SysPost>{

    @Basic
    @Column(name = "post_code", nullable = false, insertable = true, updatable = true, length = 30)
    private String postCode;

    @Basic
    @Column(name = "post_name", nullable = false, insertable = true, updatable = true, length = 60)
    private String postName;

    @Basic
    @Column(name = "org_id", nullable = true, insertable = true, updatable = true)
    private Long orgId;

    @Basic
    @Column(name = "dept_id", nullable = true, insertable = true, updatable = true)
    private Long deptId;

    @Basic
    @Column(name = "status", nullable = false, insertable = true, updatable = true, length = 4)
    private String status;

    @Basic
    @Column(name = "remark", nullable = true, insertable = true, updatable = true, length = 400)
    private String remark;

}
